
import { FileIoUtil } from "./FileIOUtil";
import { Main } from "../Main";
export class FindAndroidAndNormalDtUtil {
    private static get cachePath() {
        return Main.codePath + "Resources/Md5Cache.json";
    }
    static exec() {

        FileIoUtil.readFile(this.cachePath, (data) => {
            let md5cache = JSON.parse(data.toString());
            let androidFiles = Object.keys(md5cache["Resources/resPlatform/resAndroid/"]);

            for (let index = 0; index < androidFiles.length; index++) {
                let file = androidFiles[index];
                if (file.endsWith(".pkm@alpha")) {
                    file = file.replace(".pkm@alpha", ".png")
                }
                if (file.endsWith(".pkm")) {
                    file = file.replace(".pkm", ".png")
                }
                if (!md5cache["Resources/res/"][file]) {
                    console.log("file", androidFiles[index]);

                }
            }
        })
    }
}



